#ifndef UNIMAIN

#ifdef _WIN32
#include<windows.h>
#endif

#if defined(_WIN32) && !defined(UNIMAIN_TEST)
#define unimain(A,B) WINAPI WinMain(HINSTANCE his,HINSTANCE,PSTR pCmdLine,int nCmdShow)
#define unipiece(A,B) int A=__argc;char**B=__argv;
#else
#define unimain main
#define unipiece(A,B)
#endif

#define UNIMAIN
#endif